﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using G15_Agent.BUS;

namespace G15_Agent.Helpers.ServiceHelpers.HotelServiceHelpers
{
    public class G11HotelService : HotelService
    {
        public G11HotelService(string serviceID, string defaultUsername, string defaultPassword)
        {
            ServiceID = serviceID;
            DefaultUsername = defaultUsername;
            DefaultPassword = defaultPassword;
        }

        protected override bool CallSpecificServiceLogin(string username, string password)
        {
            return BUS_Manager.hotel.DangNhap_G11(username, password);
        }

        public override List<Models.Hotel.HangPhong> IGetClassOfRoomList()
        {
            return BUS_Manager.hotel.LayDanhSachHangPhong_G11();
        }

        public override List<Models.Hotel.LoaiPhong> IGetTypeOfRoomList()
        {
            return BUS_Manager.hotel.LayDanhSachLoaiPhong_G11();
        }

        public override List<Models.Hotel.Phong> IRetrieveRoomList(string classRoomID, string typeRoomID, DateTime arriveDate, DateTime returnDate)
        {
            return BUS_Manager.hotel.TimKiemPhongTheoTieuChi_G11(classRoomID, typeRoomID, arriveDate, returnDate);
        }

        //public override List<Models.Hotel.Phong> ISearchForRoom(string classRoomID, string typeRoomID, DateTime arriveDate, double minPrice, double maxPrice)
        //{
        //    return BUS_Manager.hotel.TimKiemPhong_G11(classRoomID, typeRoomID, arriveDate, minPrice, maxPrice);
        //}

        public override string IBookingForRoom(List<Models.Hotel.Phong> listOfRoom, DateTime arriveDate, DateTime returnDate)
        {
            return BUS_Manager.hotel.DatPhong_G11(listOfRoom, arriveDate, returnDate);
        }
    }
}